<?php

function smarty_function_file($params, &$smarty)
{	
	$type = isset($params['type'])?$params['type']:'css';
	$file = $params['file'];
	switch($type){
		case "css":
			return "<link rel='stylesheet' type='text/css' href='$file'/>";


		case "js":
			return "<script type='text/javascript' src='$file'></script>";
	}
   
}

?>
